<?php
include_once 'header.php';
$user_info = $pdo->query("select * from yunbbs_users where name='$name'");
foreach ($user_info as $key => $value) {
}
?>
<style>
    #body {
        height: 500px;
        width: 100%;
        background-color: #d3d3d3;
        display: flex;
        justify-content: space-between;
    }
    #body_left {
        width: 70%;
        height: 100%;
        /*background-color: white;*/
    }
    #body_right {
        width: 28%;
        height: 100%;
        /*background-color: greenyellow;*/
    }
    .title {
        height: 40px;
        background-color: #efeded;
        line-height: 30px;
    }
</style>
<div id="body_left">
    <div id="body_left_title">
        <div style="margin-left:15px; background-color: white;">
            <p class="title">&nbsp mybbs >> 设置</p>
            <form id="bbs_text" method="post" action="doaction.php?action=posting&name=<?php echo $name ?>&id=<?php echo $value['id'] ?>">
                <table style="margin-left:30px;width: 600px;">
                    <tr>
                        <td colspan="2"><input style="width:100%;" type="text" name="title" value="zhangsan"></td>
                    </tr>
                    <tr>
                        <td colspan="2"><textarea style="width:100%; height: 280px;" name="bbs_text" form="bbs_text"></textarea></td>
                    </tr>
                    <tr>
                        <td style="width:300px"></td>
                        <td style="height: 30px; font-size: 12px;">上传附件<input style="font-size: 12px;" type="file" name="file"></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="height: 60px;"><input type="submit" name="submit" value="发表"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<div id="body_right">
    <div id="fenlei">
        <div style="margin-top:10px; background-color: white; height: 200px;;">
            <p class="title">&nbsp发帖指南</p>
            <ul style="font-size: 12px; color: #3c3c3c;">
                <li>不欢迎灌水</li>
                <li>数字限制:标题 < 60 , 内容 < 3000</li>
                <li>纯文本格式,不支持html或ubb代码</li>
                <li>贴图:可直接粘贴图片地址,<br>如http://www.baidu.com/xxx.gif<br>支持ipq/gif/png后缀名,也可直接上传</li>
                <li>贴视频:可直接视频栏里的网址,<br>如http://www.tudou.com/programs/view/p...<br>仅支持土豆/优酷/QQ</li>
            </ul>
        </div>
    </div>
</div>

<?php
include_once 'footer.php';
?>



